import {writeFile} from "fs/promises";

 writeFile('abc.txt', 'abc', 'utf8');